package fi.foyt.cs.persistence.domainmodel.task;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
@Cacheable
public class GeneralTaskLevel {

  public Key getId() {
    return id;
  }
  
  public Integer getLevelNumber() {
    return levelNumber;
  }
  
  public void setLevelNumber(Integer levelNumber) {
    this.levelNumber = levelNumber;
  }

  public Long getTaskRewardsId() {
    return taskRewardsId;
  }
  
  public void setTaskRewardsId(Long taskRewardsId) {
    this.taskRewardsId = taskRewardsId;
  }
  
  public Long getTaskRequirementsId() {
    return taskRequirementsId;
  }
  
  public void setTaskRequirementsId(Long taskRequirementsId) {
    this.taskRequirementsId = taskRequirementsId;
  }
  
  public Long getGeneralTaskId() {
    return generalTaskId;
  }
  
  public void setGeneralTaskId(Long generalTaskId) {
    this.generalTaskId = generalTaskId;
  }
  
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  
  @Column (nullable = false)
  private Integer levelNumber;
  
  @Column (nullable = false)
  private Long generalTaskId;
  
  @Column (nullable = false)
  private Long taskRewardsId;
  
  @Column (nullable = false)
  private Long taskRequirementsId;
}
